import { request, METHOD } from "@/utils/request";
import {
    USERORGID,
    ORGBYPID,
    ORGBYID,
    DELORG,
    UPDATEORG,
    CREATEORG,
} from "./api";


export function getOrgByPid(params) {
  return request(ORGBYPID, METHOD.GET, params);
}
export function getOrgByUser(params) {
  return request(USERORGID, METHOD.GET, params);
}
export function findById(params) {
  return request(ORGBYID, METHOD.GET, params);
}
export function del(params) {
  return request(DELORG, METHOD.POST, params);
}
export function update(params) {
  return request(UPDATEORG, METHOD.POST, params);
}
export function add(params) {
  return request(CREATEORG, METHOD.POST, params);
}
